//
//  AFNData.h
//  Docter
//
//  Created by liuzhishan on 15/12/14.
//  Copyright © 2015年 shanshan. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface AFNData : NSObject

+(void)getAFNDataWithUrl:(NSString *)str  success:(void (^)(id responseObject))success
                 failure:(void (^)(NSError *error))failure;


+(void)postAFNDataWithUrl:(NSString *)str  success:(void (^)(id responseObject))success
                 failure:(void (^)(NSError *error))failure;

+(void)postBodyAFNDataWithUrl:(NSString *)str andBodyDic:(NSDictionary *)parameter success:(void (^)(id responseObject))success
                  failure:(void (^)(NSError *error))failure;



@end
